﻿namespace MvcXRepairCustomer.Interfaces
{
    using System.Collections.Generic;
using MvcXRepair.ViewModel;
using XRepair.Models;

    public interface IOrderService
    {
        IEnumerable<Order> GetAllActiveOrders();

        bool DeactivateOrderByID(int orderId);

        bool AddNewOrder(Order order);

        bool UpdateOrder(Order order);

        bool AddPendingOrder(string username, OrderViewModel model);

        OrderViewModel GetPendingOrderViewModelByUsername(string username);
    }
}
